package com.lyj.mode.principle.liskov;

/**
 * 超级计算器类
 * @author:liyajie
 * @createTime:2022/1/31 15:25
 * @version:1.0
 */
public class SuperCalculatorNew extends Base{

    private Calculator calculator = new Calculator();

    //增补需求，两数相加再加5
    public int add(int a,int b){
        return a + b + 5;
    }
    //希望两数相加之和与100求差
    public int mul(int a,int b){
        int count = calculator.add(a, b);
        return (100 - count);
    }
}
